//
//  NSDataInfo.h
//  IPTV
//
//  Created by Echo on 13-11-20.
//  Copyright (c) 2013年 游强. All rights reserved.
//

#import <Foundation/Foundation.h>

//按钮学习

typedef enum {
    AIR_ON = 0,//开关
    AIR_OFF,//开关
	AIR_COLD,//制冷
	AIR_HOT,//制热
    AIR_DAMP,//除湿
    AIR_GAS,//换气
    AIR_AUTO,//自动
} AIR_TYPE;
@interface NSDataInfo : NSObject{
    NSString *str1, *str2, *str3;//为了以后的兼容
    
    //公用
    NSString *app_cmd;//遥控码
    NSString *temp;//温度
    BOOL isStudy;//是否已经学习
    NSString *name;//图标名称 fileid
    
    //空调特殊处理
    BOOL isAir;//是否是空调
    AIR_TYPE airType;//空调类型
    
    NSMutableArray *array;//存放的组合键的6个按键
    
    //自定义特殊处理
    BOOL isCustom;//是否是自定义
    int frame_x,frame_y,frame_w,frame_h;//用于自定义按钮的位置
    NSString *btnName;//按钮名称，用于自定义
    
    int type;//自定义的种类: 0 图片按钮，1  1按钮，  2 自定义按钮  
    NSString *_id;//按钮id, 删除按钮的时候用
}
@property (nonatomic,strong) NSString *app_cmd, *temp;
@property (nonatomic,strong) NSMutableArray *array;
@property (nonatomic,assign) BOOL isStudy;
@property (nonatomic,assign) BOOL isAir;
@property (nonatomic,assign) AIR_TYPE airType;
@property (nonatomic,strong) NSString *str1, *str2, *str3;

@property (nonatomic,assign) BOOL isCustom;
@property (nonatomic,assign) int frame_x,frame_y,frame_w,frame_h;
@property (nonatomic,strong) NSString *name, *btnName, *_id;
@property (nonatomic,assign) int type;
+(CGRect)nameToRect:(NSString*)name;
@end


@interface DelayInfo : NSObject{
    NSString *app_cmd;
    NSNumber *time;
}
@property (nonatomic,strong) NSString *app_cmd;
@property (nonatomic,strong) NSNumber *time;
@end







